package com.itheima.byteStream;

import java.io.FileOutputStream;
import java.io.IOException;

/*
一次写一个字节数组
 */
public class Demo02 {

    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day12\\aaa\\b.txt");
        //你好
        String  s="你好";
        byte[] bytes = s.getBytes();
        fos.write(bytes);
        fos.close();


    }
}
